Repository navigation
Upgraded zip to v9 to fix security advisories - #49
Conversation
|
thank you for pointing out these security advisories and for taking the time to prepare this pull request. The description is clear and well-structured, and I appreciate that you went through the affected advisories individually and assessed their practical impact on this crate. I have reviewed the changes and verified them locally: the build, clippy, and the full test suite pass. Restricting I agree with your assessment regarding versioning. Since Thank you again for your contribution 😃 |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
zip8.6.0 is affected by five security advisories, which are all fixed inzip9.0.5:ZipArchive::extractcan write outside the target directory through symlinkspptx-to-md only reads archives through
ZipArchiveand never extracts them, so the practical risk is low. Still, every project that depends on pptx-to-md gets these alerts as long as it requireszip8.This PR has two commits:
zipfrom 8.6.0 to 9.0.5.ZipFile::name()returns aResultinzip9, sosrc/container.rsnow propagates the error. Also added anUnreleasedsection to the changelog.zipto the deflate compression, like docx-to-md does. PPTX and ODP files store their parts either uncompressed or deflated, so the other methods are never needed. This drops the dependencies for AES, bzip2, LZMA, PPMd, Zstandard, and Deflate64. If you prefer to keep the default features, feel free to leave this commit out.Versioning:
Error::Zipwraps the publicZipErrorofzip, so this changes the public API. calamine raised its minor version for the same upgrade (0.36 → 0.37); for pptx-to-md, that would be 2.0.0.All 91 tests pass. MindWork AI Studio uses this branch through
[patch.crates-io]until a release is out.